import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    member:{},   //用户信息
    setting:{},  //参数
    take_address:{  //收货地址
      name:"",
      phone:"",
      area:[],
      address:""
    }
  },
  mutations: {
    setMember(state,value){
      state.member = value;
    },
    setSetting(state,value){
      state.setting = value;
    },
    setTakeAddress(state,value){
      state.take_address = value;
    }
  },
  actions: {
  },
  modules: {
  }
})
